package mrsimulator;

/**
 * Created with IntelliJ IDEA.
 * User: codefish
 * Date: 11/7/12
 * Time: 2:46 PM
 * To change this template use File | Settings | File Templates.
 */
public class Task {
    private String taskId;
    private TaskInfo taskInfo;
    private String jobId;
    
    public boolean isMap() {
    	return taskInfo.isMap();
    }

    public Task(String taskId, TaskInfo taskInfo, String jobId){
        this.taskId = taskId;
        this.taskInfo = taskInfo;
        this.jobId = jobId;
    }

    public String getTaskId() {
        return taskId;
    }

    public void setTaskId(String taskId) {
        this.taskId = taskId;
    }

    public TaskInfo getTaskInfo() {
        return taskInfo;
    }

    public void setTaskInfo(TaskInfo taskInfo) {
        this.taskInfo = taskInfo;
    }

    public String getJobId() {
        return jobId;
    }
}
